package com.xiyu.service.enums.mailbox.folder;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 邮件文件夹类型
*/
@Getter
@AllArgsConstructor
public enum MailboxFolderTypeEnum implements IntArrayValuable {

    /**
    * 账号文件夹
    */
    ACCOUNT(1, "账号文件夹"),
    /**
    * 内置文件夹
    */
    INTERNAL(2, "内置文件夹"),
    /**
    * 可编辑文件夹
    */
    EDIT(3, "可编辑文件夹"),
    /**
    * 标签文件夹
    */
    LABEL(4, "标签文件夹");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MailboxFolderTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MailboxFolderTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
